package org.example;

import java.util.*;

class Fibonacci {
    public static void showinfo(){
        int pre = 0, cur = 1;
        for (int i = 1; i <= 30; i++) {
            System.out.print(cur + " ");
            cur = pre + cur;
            pre = cur - pre;
            if (i % 10 == 0)
                System.out.println();
        }
    }
}

class Sort {
    public static void showinfo(){
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        List<Float> f = new ArrayList<>();



        //List<float> h={1.1,1.2};
        for (int i = 0; i <n ; i++) {
            f.add(in.nextFloat());

        }
        System.out.println(f);
        Collections.sort(f);
        System.out.print(f);



    }
}


public class Homework {
    public static void main(String[] args) {
        Fibonacci.showinfo();
        Sort.showinfo();


    }
}
